package com.rc.saas.mini.mapper.invoice;

import com.rc.saas.mini.common.base.BaseMapper;
import com.rc.saas.mini.model.invoice.InvoiceApply;
import com.rc.saas.mini.model.invoice.InvoiceApplyExample;
import com.rc.saas.mini.vo.invoice.InvoiceApplyVo;
import com.rc.saas.mini.vo.invoice.InvoiceApplyWithIdVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InvoiceApplyMapper extends BaseMapper<Long, InvoiceApply, InvoiceApplyExample> {
    List<InvoiceApplyVo> listInvoiceApply(@Param("memberId") Long memberId, @Param("invoiceNormalType") String invoiceNormalType);

    void insertRetrunId(InvoiceApply invoiceApply);

    InvoiceApplyVo selectInvoiceApplyById(@Param("invoiceApplyId") Long invoiceApplyId);

    InvoiceApplyVo selectInvoiceApplyByOrderId(@Param("orderId") Long orderId);

    List<InvoiceApplyWithIdVo> listByOrderIds(List<Long> ids);
}